package com.sxz.sbs.module.order.mode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author : tian
 * @date : 2018/04/16
 * @des : 订单详情实体
 */

public class OrderDetailBean {

    /**
     * AuditStatus : 0
     * IsByStage : 否
     * statusStr : 已付定金
     * HoldDays : 0
     * AdvanceMoneyStr : 壹拾万元整
     * ParkingId : 3356
     * PhotoUrl : http://91tcw.cn/upload/201710/23/201710231542567586.jpg
     * Discount : [{"textColor":"00CAA3","title":"胖宽","backColor":"e5faf6"},{"textColor":"EA5544","title":"胖卓","backColor":"fdeeec"}]
     * PayUserPhone : 17320145021
     * AdvanceMoney : 100000
     * txt_Account :
     * orderType : 车位保留金订单
     * Number : A0042
     * txt_Name :
     * DealStatus : 0
     * HoldEndTime : 2018-04-10 09:59:24
     * DealPrice : 168000
     * Title : 出售 中基都市春天 13平米
     * HoldBeginTime : 2018-04-10 09:59:24
     * Name : 中基都市春天
     * Status : 1
     * PayUserName : 噜噜噜先生
     * OrderNumber : S18041009592406258
     * CreateTime : 2018-04-10 09:59:24
     * Address : 南阳路博颂路交叉口中基都市春天
     * Id : 525
     * Remark :
     * HandleStatus : 1
     */

    private int AuditStatus;    // 0未审核  1 审核通过   2 审核失败
    private String IsByStage;
    private String statusStr;
    private int HoldDays;
    private String AdvanceMoneyStr;
    private int ParkingId;
    private String PhotoUrl;
    private String PayUserPhone;
    private int AdvanceMoney;
    private String txt_Account;
    private String orderType;
    private String Number;
    private String txt_Name;
    private int DealStatus;
    private String HoldEndTime;
    private int DealPrice;
    private String Title;
    private String HoldBeginTime;
    private String Name;
    private int Status;
    private String PayUserName;
    private String OrderNumber;
    private String CreateTime;
    private String Address;
    private int Id;
    private String Remark;
    private int HandleStatus;
    private List<DiscountBean> Discount;
    private List<PhotoList> protocolList;
    private int IsLeader;
    private String FailReason;

    public String getFailReason() {
        return FailReason == null ? "" : FailReason;
    }

    public int getIsLeader() {
        return IsLeader;
    }

    public static class PhotoList {

        /**
         * FileType : 0
         * PhotoUrl : http://91tcw.cn/upload/201711/18/201711181002192436.jpg
         * Id : 422
         */

        private int FileType;
        private String PhotoUrl;
        private int Id;

        public int getFileType() {
            return FileType;
        }

        public String getPhotoUrl() {
            return PhotoUrl == null ? "" : PhotoUrl;
        }

        public int getId() {
            return Id;
        }
    }

    public List<PhotoList> getProtocolList() {
        if (protocolList == null) {
            return new ArrayList<>();
        }
        return protocolList;
    }

    public int getAuditStatus() {
        return AuditStatus;
    }

    public void setAuditStatus(int AuditStatus) {
        this.AuditStatus = AuditStatus;
    }

    public String getIsByStage() {
        return IsByStage;
    }

    public void setIsByStage(String IsByStage) {
        this.IsByStage = IsByStage;
    }

    public String getStatusStr() {
        return statusStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }

    public int getHoldDays() {
        return HoldDays;
    }

    public void setHoldDays(int HoldDays) {
        this.HoldDays = HoldDays;
    }

    public String getAdvanceMoneyStr() {
        return AdvanceMoneyStr;
    }

    public void setAdvanceMoneyStr(String AdvanceMoneyStr) {
        this.AdvanceMoneyStr = AdvanceMoneyStr;
    }

    public int getParkingId() {
        return ParkingId;
    }

    public void setParkingId(int ParkingId) {
        this.ParkingId = ParkingId;
    }

    public String getPhotoUrl() {
        return PhotoUrl;
    }

    public void setPhotoUrl(String PhotoUrl) {
        this.PhotoUrl = PhotoUrl;
    }

    public String getPayUserPhone() {
        return PayUserPhone;
    }

    public void setPayUserPhone(String PayUserPhone) {
        this.PayUserPhone = PayUserPhone;
    }

    public int getAdvanceMoney() {
        return AdvanceMoney;
    }

    public void setAdvanceMoney(int AdvanceMoney) {
        this.AdvanceMoney = AdvanceMoney;
    }

    public String getTxt_Account() {
        return txt_Account;
    }

    public void setTxt_Account(String txt_Account) {
        this.txt_Account = txt_Account;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getNumber() {
        return Number;
    }

    public void setNumber(String Number) {
        this.Number = Number;
    }

    public String getTxt_Name() {
        return txt_Name;
    }

    public void setTxt_Name(String txt_Name) {
        this.txt_Name = txt_Name;
    }

    public int getDealStatus() {
        return DealStatus;
    }

    public void setDealStatus(int DealStatus) {
        this.DealStatus = DealStatus;
    }

    public String getHoldEndTime() {
        return HoldEndTime;
    }

    public void setHoldEndTime(String HoldEndTime) {
        this.HoldEndTime = HoldEndTime;
    }

    public int getDealPrice() {
        return DealPrice;
    }

    public void setDealPrice(int DealPrice) {
        this.DealPrice = DealPrice;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String Title) {
        this.Title = Title;
    }

    public String getHoldBeginTime() {
        return HoldBeginTime;
    }

    public void setHoldBeginTime(String HoldBeginTime) {
        this.HoldBeginTime = HoldBeginTime;
    }

    public String getName() {
        return Name;
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public int getStatus() {
        return Status;
    }

    public void setStatus(int Status) {
        this.Status = Status;
    }

    public String getPayUserName() {
        return PayUserName;
    }

    public void setPayUserName(String PayUserName) {
        this.PayUserName = PayUserName;
    }

    public String getOrderNumber() {
        return OrderNumber;
    }

    public void setOrderNumber(String OrderNumber) {
        this.OrderNumber = OrderNumber;
    }

    public String getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(String CreateTime) {
        this.CreateTime = CreateTime;
    }

    public String getAddress() {
        return Address;
    }

    public void setAddress(String Address) {
        this.Address = Address;
    }

    public int getId() {
        return Id;
    }

    public void setId(int Id) {
        this.Id = Id;
    }

    public String getRemark() {
        return Remark;
    }

    public void setRemark(String Remark) {
        this.Remark = Remark;
    }

    public int getHandleStatus() {
        return HandleStatus;
    }

    public void setHandleStatus(int HandleStatus) {
        this.HandleStatus = HandleStatus;
    }

    public List<DiscountBean> getDiscount() {
        if (Discount == null) {
            return new ArrayList<>();
        }
        return Discount;
    }

    public void setDiscount(List<DiscountBean> Discount) {
        this.Discount = Discount;
    }

    public static class DiscountBean {
        /**
         * textColor : 00CAA3
         * title : 胖宽
         * backColor : e5faf6
         */

        private String textColor;
        private String title;
        private String backColor;

        @Override
        public String toString() {
            return "DiscountBean{" +
                    "textColor='" + textColor + '\'' +
                    ", title='" + title + '\'' +
                    ", backColor='" + backColor + '\'' +
                    '}';
        }

        public String getTextColor() {
            return textColor;
        }

        public void setTextColor(String textColor) {
            this.textColor = textColor;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getBackColor() {
            return backColor;
        }

        public void setBackColor(String backColor) {
            this.backColor = backColor;
        }
    }
}
